home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 246 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  949 b 

  1. Path: senior.nectec.or.th!nwg!finn
  2. From: finn@nwg.nectec.or.th (James Finn)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Friends....
  5. Date: 3 Jan 1996 09:11:59 GMT
  6. Organization: National Electronics and Computer Technology Center, Bangkok
  7. Message-ID: <4cdh8v$2sh@senior.nectec.or.th>
  8. References: <4c9srh$g2l@ixnews3.ix.netcom.com> <4cdghg$1ep@senior.nectec.or.th>
  9. NNTP-Posting-Host: nwg.nectec.or.th
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. James Finn (finn@nwg.nectec.or.th) wrote:
  13.  
  14. Sorry for the typos, folks. New Year brain damage
  15. still under recovery:
  16.  
  17. : Say you have a class CL, with variables:
  18.  
  19. :     CL cl1, cl2.
  20.  
  21. Should be
  22.     CL cl1, cl2;
  23.  
  24. : Well, it's an overloaded function. The types being used in
  25. : the function definition are not the same as the type for
  26. : which the function is being defined. For example, if I
  27. : were writing a << function to read complex numbers, I
  28.                                 ~~~~
  29.                     should be "write"
  30.  
  31. --James
  32.